from upstash_vector import Index

index = Index(url="https://causal-squid-2972-us1-vector.upstash.io", token="ABUFMGNhdXNhbC1zcXVpZC0yOTcyLXVzMWFkbWluT0RjMFpUYzVPV010TWpObVlTMDBZamN3TFdJMFlURXRPR1poTURZME56ZzFNamN6")

index.upsert(
  vectors=[
      ("id1", "Enter data as string", {"metadata_field": "metadata_value"}),
  ]
)

index.query(
  data="Enter data as string",
  top_k=1,
  include_vectors=True,
  include_metadata=True
)
